<template>
    <div>
        <tabbar :msg="'/xianshang'"></tabbar>
        <!-- 轮播图 -->
        <div style="padding-top: 50px;">
            <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
                <van-swipe-item>
                    <div class="swipe-item bg1">
                        <div class="bg3-text">
                            覆盖线上主流支付方式，<br>
                            极速收付，安全复航
                            <!-- <br> -->
                            <div>随时随地满足多样化经营需求</div>
                        </div>

                    </div>
                </van-swipe-item>
            </van-swipe>
        </div>
        <!-- 支付产品 -->
        <div class="core_box">
            <div class="title">PC端收款</div>
            <div class="core_li">
                <van-swipe class="my-swipes" :autoplay="3000" indicator-color="#006FBC">
                    <van-swipe-item>
                        <van-row gutter="13">
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon1.png" alt="">
                                    <div class="core_title">微信扫码</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon2.png" alt="">
                                    <div class="core_title">支付宝扫码</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon3.png" alt="">
                                    <div class="core_title">收银台(PC)</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon4.png" alt="">
                                    <div class="core_title">网银</div>
                                </div>
                            </van-col>
                        </van-row>
                    </van-swipe-item>
                    <van-swipe-item>
                        <van-row gutter="13">
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon5.png" alt="">
                                    <div class="core_title">一键快捷</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon6.png" alt="">
                                    <div class="core_title">后台快捷</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon7.png" alt="">
                                    <div class="core_title">协议支付</div>
                                </div>
                            </van-col>
                        </van-row>
                    </van-swipe-item>
                </van-swipe>

            </div>
        </div>
        <!-- 支付产品 -->
        <div class="core_box">
            <div class="title" style="padding-top: 0;">移动收款端</div>
            <div class="core_li">
                <van-swipe class="my-swipes" :autoplay="3000" indicator-color="#006FBC">
                    <van-swipe-item>
                        <van-row gutter="13">
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon8.png" alt="">
                                    <div class="core_title">微信公众号/小程序</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon9.png" alt="">
                                    <div class="core_title">支付宝生活号/小程序</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon10.png" alt="">
                                    <div class="core_title">银联SDK</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon11.png" alt="">
                                    <div class="core_title">H5快捷</div>
                                </div>
                            </van-col>
                        </van-row>
                    </van-swipe-item>
                </van-swipe>

            </div>
        </div>
        <!-- 支付产品 -->
        <div class="core_box">
            <div class="title" style="padding-top: 0;">付款</div>
            <div class="core_li">
                <van-swipe class="my-swipes" :autoplay="3000" indicator-color="#006FBC">
                    <van-swipe-item>
                        <van-row gutter="13">
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon12.png" alt="">
                                    <div class="core_title">付款</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon13.png" alt="">
                                    <div class="core_title">虚拟户</div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon14.png" alt="">
                                    <div class="core_title">分账</div>
                                </div>
                            </van-col>
                        </van-row>
                    </van-swipe-item>
                </van-swipe>

            </div>
        </div>
        <!-- 行业解决方案 -->
        <div class="solution">
            <div class="title">我们的优势</div>
            <!-- <div class="desc">稳定高效 7行代码，极速入网</div> -->
            <van-swipe class="my-swipes" :autoplay="3000" indicator-color="#006FBC">
                <van-swipe-item>
                    <div class="solution_li">
                        <div class="solution_item">
                            <img src="../../images/product/6.png" alt="">
                            <div class="solution_content">
                                <div>支持多场景</div>
                                <div> 支持商户各类场景需求，支持商户PC端，移动端扫码支付需求。</div>
                            </div>
                        </div>
                        <div class="solution_item">
                            <img src="../../images/product/7.png" alt="">
                            <div class="solution_content">
                                <div>更完善的服务</div>
                                <div>优惠的支付费率和优质通道，大大降低收款成本；高效接入，为商户快速入网，专业的支付团队，预防支付风险：智能系统化维护，为商户提供应急响应机制，及时处理支付系统问题。
                                </div>
                            </div>
                        </div>
                        <div class="solution_item">
                            <img src="../../images/product/8.png" alt="">
                            <div class="solution_content">
                                <div>更丰富的业务场景</div>
                                <div>根据电商、餐饮、零售等行业中的各类交易和分账业务场景，提供支付接口，贴近商户各类场景需求，提供最契合的业务场景解决方案。
                                </div>
                            </div>
                        </div>
                    </div>
                </van-swipe-item>
                <van-swipe-item>
                    <div class="solution_li">
                        <div class="solution_item">
                            <img src="../../images/product/9.png" alt="">
                            <div class="solution_content">
                                <div>接入便捷</div>
                                <div>一次对接，即可接入多种支付产品。</div>
                            </div>
                        </div>
                        <div class="solution_item">
                            <img src="../../images/product/10.png" alt="">
                            <div class="solution_content">
                                <div>实时服务</div>
                                <div>7*24小时的技术支持，轻松应对各类场景。</div>
                            </div>
                        </div>
                    </div>
                </van-swipe-item>
            </van-swipe>

        </div>
        <!--  -->
        <div>
            <div class="title">使用场景</div>
            <div class="pay_scene_box">
                <div class="pay_scene">
                    <div class="bg1">平台电商</div>
                    <div class="bg2">在线娱乐</div>
                    <div class="bg3">生活缴费</div>
                    <div class="bg4">直播娱乐</div>
                    <div class="bg5">在线教育</div>
                </div>
            </div>
        </div>
        <!-- 底部 -->
        <footers></footers>
    </div>
</template>
<script>
import tabbar from "@/components/tabbar";
import footers from "@/components/footer";
export default {
    name: 'home',
    components: {
        tabbar, footers
    }
}
</script>
<style scoped lang="scss">
.swipe-item {
    height: 152px;
    background: url('../../images/home/bg1.png') no-repeat center;
    background-size: cover;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 24px;
    text-align: center;
    // line-height: 152px;
    position: relative;
}

.desc {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 10px;
    color: #666666;
    text-align: center;
    margin-bottom: 18px;
}

.bg1 {
    background: url('../../images/product/bg.png') no-repeat center;
    background-size: cover;
}

// .bg2 {
//     background: url('../../images/product/bg2.png') no-repeat center;
//     background-size: cover;
// }

// .bg3 {
//     background: url('../../images/product/bg3.png') no-repeat center;
//     background-size: cover;
// }

.bg1-text {
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bg2-text {
    text-align: left;
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.bg3-text {
    text-align: left;
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);

    div {
        font-weight: 400;
        font-size: 12px;
        margin-top: 8px;
    }
}

.my-swipe {
    ::v-deep .van-swipe__indicator {
        width: 12px;
        height: 2px;
        border-radius: 0;
    }
}

.core_box {
    ::v-deep .van-swipe-item {
        padding-bottom: 20px;
    }

    ::v-deep .van-swipe__indicator {
        background: #D2D2D2;
    }
}

.core_box {
    background: #F6FBFE;
    padding-bottom: 10px;

    .core_li {
        padding: 0 12px;

        .core_item {
            width: 100%;
            height: 134px;
            background: #FFFFFF;
            box-shadow: 0px 0px 8px 0px rgba(158, 175, 209, 0.38);
            border-radius: 4px;
            margin-bottom: 12px;
            display: flex;
            // justify-content: center;
            flex-direction: column;
            align-items: center;
            padding: 18px 0;
            box-sizing: border-box;

            img {
                width: 50px;
                height: 50px;
            }

            .core_title {
                font-family: PingFangSC, PingFang SC;
                font-weight: 500;
                font-size: 14px;
                color: #333;
                margin-top: 10px;
                text-align: center;
            }

            .core_desc {
                font-family: PingFangSC, PingFang SC;
                font-weight: 400;
                font-size: 12px;
                color: #666;
                margin-top: 10px;
                text-align: center;
                padding: 0 10px;
            }
        }
    }
}

.title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 16px;
    color: #333333;
    // margin: 24px 0 20px 0;
    padding: 24px 0 20px 0;
    text-align: center;
}

// 平台安全
.solution {
    background: url('../../images/product/bg5.png') no-repeat center;
    background-size: cover;
    padding-bottom: 14px;

    ::v-deep .van-swipe-item {
        padding-bottom: 20px;
    }

    ::v-deep .van-swipe__indicator {
        background: #D2D2D2;
    }

    .solution_li {
        padding: 0 12px;

        .solution_item {
            background: #FFFFFF;
            box-shadow: 0px 0px 8px 0px rgba(158, 175, 209, 0.38);
            border-radius: 4px;
            padding: 16px 16px 16px 12px;
            display: flex;
            justify-content: space-between;
            position: relative;
            margin-bottom: 10px;

            img {
                width: 40px;
                height: 40px;
            }

            .solution_content {
                width: calc(100% - 36px);
                margin-left: 9px;

                div:nth-child(1) {
                    font-family: PingFangSC, PingFang SC;
                    font-weight: 500;
                    font-size: 14px;
                    color: #006FBC;
                }

                div:nth-child(2) {
                    font-family: PingFangSC, PingFang SC;
                    font-weight: 400;
                    font-size: 12px;
                    color: #666666;
                    margin-top: 6px;
                }
            }
        }
    }
}

// 灵活分期
.flex_pay {
    padding: 0 12px;

    img {
        width: 100%;
        margin-bottom: 30px;
    }
}

// 支付产品
.fz {
    display: flex;
    justify-content: space-between;
    height: 72px;
    background: #FFFFFF;
    box-shadow: 0px 0px 8px 0px rgba(158, 175, 209, 0.38);
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 18px;
    box-sizing: border-box;

    img {
        width: 36px;
        height: 36px;
    }

    .pay_core {
        width: calc(100% - 36px);
        margin-left: 14px;

        .core_title {
            font-family: PingFangSC, PingFang SC;
            font-weight: 500;
            font-size: 14px;
            color: #006FBC;
            margin-bottom: 4px;
        }

        .core_desc {
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: #333333;
        }
    }


}

.pay_scene_box {
    width: 100%;
    /* 设置宽度 */
    overflow: hidden;
    /* 隐藏溢出内容 */
    padding-left: 12px;
    box-sizing: border-box;
    margin-bottom: 20px;

    .pay_scene {
        display: flex;
        justify-content: flex-start;
        /* 使内容从左到右排列 */
        align-items: center;
        flex-wrap: nowrap;
        /* 不换行 */
        overflow-x: auto;
        /* 仅在水平方向允许滚动 */
        scroll-snap-type: x mandatory;
        /* 可选：实现平滑滚动效果 */
        scrollbar-width: none;
        /* Firefox 隐藏滚动条 */
        -ms-overflow-style: none;
        /* IE 和 Edge 隐藏滚动条 */
        padding: 0 12px;
        /* 添加内边距以避免内容紧贴边缘 */

        /* 隐藏滚动条 */
        &::-webkit-scrollbar {
            display: none;
            /* WebKit 浏览器隐藏滚动条 */
        }

        div {
            flex: 0 0 146px;
            /* 确保每个子项的宽度固定 */
            height: 224px;
            background: red;
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
            /* 可选：使每个项在滚动时对齐 */
            margin-right: 10px;
            /* 添加间距 */
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 14px;
            color: #FFFFFF;
        }

        .bg1 {
            background: url('../../images/product/i6.png') no-repeat center;
            background-size: cover;
        }

        .bg2 {
            background: url('../../images/product/i7.png') no-repeat center;
            background-size: cover;
        }

        .bg3 {
            background: url('../../images/product/i8.png') no-repeat center;
            background-size: cover;
        }

        .bg4 {
            background: url('../../images/product/i9.png') no-repeat center;
            background-size: cover;
        }

        .bg5 {
            background: url('../../images/product/i10.png') no-repeat center;
            background-size: cover;
        }
    }
}
</style>